<template>
  <div>
    <span>{{ name }}</span>
    <button @click="add(index)">+</button>
    <span> {{ count }} </span>
    <button @click="sec(index)">-</button>
  </div>
</template>

<script>
export default {
    props: ['name',"count",'index'],
    methods: {
        add(ind){
            this.$emit('addE', ind)
        },
        sec(ind){
            this.$emit("secE", ind)
        }
    }
};
</script>

<style>
</style>